<i-form :model="this.data" class='app-form' ref='form'  id='purchase_requisition_ef_master' style="" @on-validate="formItemValidate.apply(_self, arguments)">
    <input style="display:none;" />
    <row >
            <i-col class="form-layout-container" v-show="detailsModel.group1.visible" :style="{}"  :lg="{ span: 24, offset: 0 }">
    <app-form-group :model="detailsModel.group1" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.purchase_requisition.ef_master_form.details.group1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >    
    <app-form-group-data-panel slot="dataInfoPanel" :model="detailsModel.group1" :data="data" :context="context" :viewparams="viewparams"/>
    <row>
        <i-col class="form-layout-container" v-show="detailsModel.name.visible" :style="{}"  :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
    <app-form-item name='name' :itemRules="this.rules().name" class='' :caption="$t('entities.purchase_requisition.ef_master_form.details.name')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.name.error" :isEmptyCaption="false" labelPos="LEFT">
    <input-box 
    v-model="data.name"  
    @enter="onEnter($event)"  
     unit=""  
    :disabled="detailsModel.name.disabled" 
    type='text' 
    style="">
</input-box>

</app-form-item>

</i-col>
<i-col class="form-layout-container" v-show="detailsModel.user_name.visible" :style="{}"  :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
    <app-form-item name='user_name' :itemRules="this.rules().user_name" class='' :caption="$t('entities.purchase_requisition.ef_master_form.details.user_name')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.user_name.error" :isEmptyCaption="false" labelPos="LEFT">
    
  <app-picker 
    :formState="formState"
    :data="data"
    :context="context"
    :viewparams="viewparams"
    :localContext ='{ }' 
    :localParam ='{ }' 
    :disabled="detailsModel.user_name.disabled"
    name='user_name'
    deMajorField='name'
    deKeyField='res_users'
    :service="service"
    :acParams="{ serviceName: 'Res_usersService', interfaceName: 'FetchDefault'}"
    valueitem='user_id' 
    :value="data.user_name"
    :pickupView="{ viewname: 'res-users-pickup-view', title: $t('entities.res_users.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'res_users', parameterName: 'res_users' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
    style=""  
    @formitemvaluechange="onFormItemValueChange($event)">
  </app-picker>

</app-form-item>

</i-col>
<i-col class="form-layout-container" v-show="detailsModel.type_id_text.visible" :style="{}"  :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
    <app-form-item name='type_id_text' :itemRules="this.rules().type_id_text" class='' :caption="$t('entities.purchase_requisition.ef_master_form.details.type_id_text')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.type_id_text.error" :isEmptyCaption="false" labelPos="LEFT">
    
  <app-picker 
    :formState="formState"
    :data="data"
    :context="context"
    :viewparams="viewparams"
    :localContext ='{ }' 
    :localParam ='{ }' 
    :disabled="detailsModel.type_id_text.disabled"
    name='type_id_text'
    deMajorField='name'
    deKeyField='purchase_requisition_type'
    :service="service"
    :acParams="{ serviceName: 'Purchase_requisition_typeService', interfaceName: 'FetchDefault'}"
    valueitem='type_id' 
    :value="data.type_id_text"
    :pickupView="{ viewname: 'purchase-requisition-type-pickup-view', title: $t('entities.purchase_requisition_type.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'purchase_requisition_types', parameterName: 'purchase_requisition_type' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
    style=""  
    @formitemvaluechange="onFormItemValueChange($event)">
  </app-picker>

</app-form-item>

</i-col>
<i-col class="form-layout-container" v-show="detailsModel.vendor_id_text.visible" :style="{}"  :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
    <app-form-item name='vendor_id_text' :itemRules="this.rules().vendor_id_text" class='' :caption="$t('entities.purchase_requisition.ef_master_form.details.vendor_id_text')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.vendor_id_text.error" :isEmptyCaption="false" labelPos="LEFT">
    
<app-picker  
  :formState="formState"
  :data="data"
  :context="context"
  :viewparams="viewparams"
  :localContext ='{ }' 
  :localParam ='{ }' 
  :disabled="detailsModel.vendor_id_text.disabled"
  name='vendor_id_text'
  deMajorField='name'
  deKeyField='res_supplier'
  :service="service"
  :acParams="{ serviceName: 'Res_supplierService', interfaceName: 'FetchDefault'}"
  valueitem='vendor_id'
  :value="data.vendor_id_text"
  editortype="dropdown"
  style=""
  @formitemvaluechange="onFormItemValueChange($event)">
</app-picker>
</app-form-item>

</i-col>
<i-col class="form-layout-container" v-show="detailsModel.currency_name.visible" :style="{}"  :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
    <app-form-item name='currency_name' :itemRules="this.rules().currency_name" class='' :caption="$t('entities.purchase_requisition.ef_master_form.details.currency_name')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.currency_name.error" :isEmptyCaption="false" labelPos="LEFT">
    
<app-picker  
  :formState="formState"
  :data="data"
  :context="context"
  :viewparams="viewparams"
  :localContext ='{ }' 
  :localParam ='{ }' 
  :disabled="detailsModel.currency_name.disabled"
  name='currency_name'
  deMajorField='name'
  deKeyField='res_currency'
  :service="service"
  :acParams="{ }"
  valueitem='currency_id'
  :value="data.currency_name"
  editortype="dropdown"
  style=""
  @formitemvaluechange="onFormItemValueChange($event)">
</app-picker>
</app-form-item>

</i-col>
<i-col class="form-layout-container" v-show="detailsModel.date_end.visible" :style="{}"  :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
    <app-form-item name='date_end' :itemRules="this.rules().date_end" class='' :caption="$t('entities.purchase_requisition.ef_master_form.details.date_end')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.date_end.error" :isEmptyCaption="false" labelPos="LEFT">
    <date-picker type="datetime" :transfer="true" format="yyyy-MM-dd HH:mm:ss" placeholder="请选择时间..." :value="data.date_end" :disabled="detailsModel.date_end.disabled" style="min-width: 150px; width:160px;" @on-change="(val1, val2) => { this.data.date_end = val1 }"></date-picker>

</app-form-item>

</i-col>
<i-col class="form-layout-container" v-show="detailsModel.ordering_date.visible" :style="{}"  :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
    <app-form-item name='ordering_date' :itemRules="this.rules().ordering_date" class='' :caption="$t('entities.purchase_requisition.ef_master_form.details.ordering_date')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.ordering_date.error" :isEmptyCaption="false" labelPos="LEFT">
    <date-picker type="date" :transfer="true" format="yyyy-MM-dd" placeholder="请选择时间..." :value="data.ordering_date" :disabled="detailsModel.ordering_date.disabled" style="min-width: 150px; width:100px;" @on-change="(val1, val2) => { this.data.ordering_date = val1 }"></date-picker>

</app-form-item>

</i-col>
<i-col class="form-layout-container" v-show="detailsModel.schedule_date.visible" :style="{}"  :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
    <app-form-item name='schedule_date' :itemRules="this.rules().schedule_date" class='' :caption="$t('entities.purchase_requisition.ef_master_form.details.schedule_date')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.schedule_date.error" :isEmptyCaption="false" labelPos="LEFT">
    <date-picker type="date" :transfer="true" format="yyyy-MM-dd" placeholder="请选择时间..." :value="data.schedule_date" :disabled="detailsModel.schedule_date.disabled" style="min-width: 150px; width:100px;" @on-change="(val1, val2) => { this.data.schedule_date = val1 }"></date-picker>

</app-form-item>

</i-col>
<i-col class="form-layout-container" v-show="detailsModel.origin.visible" :style="{}"  :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
    <app-form-item name='origin' :itemRules="this.rules().origin" class='' :caption="$t('entities.purchase_requisition.ef_master_form.details.origin')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.origin.error" :isEmptyCaption="false" labelPos="LEFT">
    <input-box 
    v-model="data.origin"  
    @enter="onEnter($event)"  
     unit=""  
    :disabled="detailsModel.origin.disabled" 
    type='text' 
    style="">
</input-box>

</app-form-item>

</i-col>
<i-col class="form-layout-container" v-show="detailsModel.company_name.visible" :style="{}"  :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
    <app-form-item name='company_name' :itemRules="this.rules().company_name" class='' :caption="$t('entities.purchase_requisition.ef_master_form.details.company_name')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.company_name.error" :isEmptyCaption="false" labelPos="LEFT">
    
<app-picker  
  :formState="formState"
  :data="data"
  :context="context"
  :viewparams="viewparams"
  :localContext ='{ }' 
  :localParam ='{ }' 
  :disabled="detailsModel.company_name.disabled"
  name='company_name'
  deMajorField='name'
  deKeyField='res_company'
  :service="service"
  :acParams="{ serviceName: 'Res_companyService', interfaceName: 'FetchDefault'}"
  valueitem='company_id'
  :value="data.company_name"
  editortype="dropdown"
  style=""
  @formitemvaluechange="onFormItemValueChange($event)">
</app-picker>
</app-form-item>

</i-col>
    
    </row>
</app-form-group>

</i-col>
<i-col class="form-layout-container" v-show="detailsModel.grouppanel1.visible" :style="{}"  :lg="{ span: 24, offset: 0 }">
    <app-form-group :model="detailsModel.grouppanel1" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.purchase_requisition.ef_master_form.details.grouppanel1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >    
    <app-form-group-data-panel slot="dataInfoPanel" :model="detailsModel.grouppanel1" :data="data" :context="context" :viewparams="viewparams"/>
    <row>
        <i-col class="form-layout-container" v-show="detailsModel.druipart1.visible" :style="{}"  :lg="{ span: 24, offset: 0 }">
    <app-form-druipart
    
    :formState="formState"
    :isForbidLoad="this.data.srfuf === '0'"
    paramItem='purchase_requisition' 
    :parentdata='{"srfparentdefname":"REQUISITION_ID","srfparentdename":"PURCHASE_REQUISITION","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_PURCHASE_REQUISITION_LINE_PURCHASE_REQUISITION_REQUISITION_ID","SRFDER1NID":"DER1N_PURCHASE_REQUISITION_LINE_PURCHASE_REQUISITION_REQUISITION_ID"}'
    :parameters="[
        { pathName: 'product_products', parameterName: 'product_product' },
    ]"
    :context="context"
    :viewparams="viewparams"
    :localContext ='{}'
    :localParam ='{}'
    parameterName='purchase_requisition'
    parentName="Purchase_requisition"  
    refviewtype='DEGRIDVIEW' 
    refreshitems='' 
    :ignorefieldvaluechange="ignorefieldvaluechange"
    viewname='purchase-requisition-line-line-edit' 
    :data="JSON.stringify(this.data)" 
    @drdatasaved="drdatasaved.apply(_self, arguments)"
    style="overflow: auto;">
</app-form-druipart>

</i-col>
    
    </row>
</app-form-group>

</i-col>


    </row>
</i-form>
